# this Makefile is to:
# 1) compile the project files
# 2) create doxygen documentation

# see below for how to use it


CC=gcc
FLAGS=
OBJS=main.o
EXE=main


#run: make 
## to compile project files 
all: main

main: main.c
	$(CC) $(FLAGS) -o main $^


# run: make doc
## creates doxygen documentation in html folder
## index.html is the file to look at
doc:
	doxygen CappingProjectDoxyfile.Doxyfile

# run: make clean
## to clean up the project files, also cleans up doxygen stuff
clean: clean-doc
	rm -f *~ $(EXE) $(OBJS) *.txt

# run: make clean-doc
## to clean up doxygen stuff
clean-doc:
	rm ./html -rf
